package com.dhcc.cdc.sys.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.mapper.BaseMapper;
import com.dhcc.core.framework.result.node.ZTreeNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 院区数据、科室数据、患者数据、检验数据等
 * 
 * @ClassName: CdcDataMapper
 * @Description: TODO
 * @author jumper
 * @date 2021-03-31 17:43:57
 */
public interface CdcDataMapper  extends BaseMapper<CdcDataEntity> {
	
    List<CdcDataEntity> list(@Param("map")Map<String, Object> map);
    List<CdcDataEntity> page(@Param("page") Page<CdcDataEntity> page,@Param("map")Map<String, Object> map);

    /**
     * 获取ztree的节点列表
     *
     * @date 2021-04-01 15:25:38
     */
    List<ZTreeNode> tree(@Param("dataDesc")String dataDesc,@Param("dataType")Long dataTypeId);

    List<ZTreeNode> treeAll(@Param("dataDesc") String dataDesc, @Param("dataType")Long dataTypeId);

    CdcDataEntity selectByCode(@Param("code") String code);
}
